import { apiRequest } from '../utils/api';
import { Config, AppConfig, CreateUpdateConfigDto } from '../types/config';

// 获取应用配置（公共接口）
export const getAppConfig = async (): Promise<AppConfig> => {
  return apiRequest<AppConfig>('/config/app', {
    method: 'GET',
  });
};